const Router = require('koa-router')

const equipmentLogController = require('../../controllers/equipmentLog')

const m = require('../../middlewares/admin_auth')

const router = new Router({ prefix: '/admin/api/v1/equipmentLog' })


router.get('/getList', m.auth,equipmentLogController.list);

// 获取所有设备历史50条数据
router.get("allEqu/history/log", m.auth,equipmentLogController.getAllEquLogDataByEnterId)

router.get("/history/log", m.auth,equipmentLogController.getEquLogDataByEnterId)

router.get("/warning/log", m.auth,equipmentLogController.getWarnEquLogDataByEnterId)

router.get('/dict/numStatus', m.auth,equipmentLogController.getNumStatusList);


module.exports = router
